package cn.pconline.autoclub.entity;

import java.util.Date;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;
import org.gelivable.dao.Transient;

@Entity(tableName = "ac_club_award_record" , logChange = true)
public class ClubAwardRecord {

    public final static int RECEIVED_YES = 1;  // 已领取
    public final static int RECEIVED_NO = 0; // 未领取
    public final static int STATUS_YES = 1;  // 已发货
    public final static int STATUS_NO = 0; // 未发货
    public final static int IS_UPSEND_YES = 1 ; //升级已发送
    public final static int IS_UPSEND_NO = 0; //升级未发送
    public final static int IS_DOWNSEND_YES = 2 ;//降级已发送
    public final static int IS_DOWNSEND_NO = 3;//降级未发送
    @Id
    @Column(name = "club_award_record_id")
    private long clubAwardRecordId;
    @Column(name = "club_id")
    private long clubId; // 车友会ID
    @Column(name = "level_id")
    private long levelId; // 车友会等级ID
    @Column(name = "update_time")
    private Date updateTime; // 升级时间
    @Column(name = "name")
    private String name; // 领取人
    @Column(name = "address")
    private String address; // 领取地址
    @Column(name = "postal_code")
    private String postalCode; // 邮编
    @Column(name = "phone")
    private String phone; // 联系方式
    @Column(name = "received")
    private int received = 0; // 奖品领取 0-未领取，1-已领取
    @Column(name = "status")
    private int status = 0; // 发货 0-未发货，1-已发货
    @Column(name = "is_send")
    private int isSend;
    @Column(name = "accept_date")
    private Date acceptDate;
	@Transient
    private String clubName;
    @Transient
    private String levelName;
    
    public Date getAcceptDate() {
		return acceptDate;
	}

	public void setAcceptDate(Date acceptDate) {
		this.acceptDate = acceptDate;
	}

    public long getClubAwardRecordId() {
        return clubAwardRecordId;
    }

    public void setClubAwardRecordId(long clubAwardRecordId) {
        this.clubAwardRecordId = clubAwardRecordId;
    }

    public long getClubId() {
        return clubId;
    }

    public void setClubId(long clubId) {
        this.clubId = clubId;
    }

    public long getLevelId() {
        return levelId;
    }

    public void setLevelId(long levelId) {
        this.levelId = levelId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getReceived() {
        return received;
    }

    public void setReceived(int received) {
        this.received = received;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getClubName() {
        return clubName;
    }

    public void setClubName(String clubName) {
        this.clubName = clubName;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public int getIsSend() {
        return isSend;
    }

    public void setIsSend(int isSend) {
        this.isSend = isSend;
    }
}
